package day05;

public class forDemo {
    public static void main(String[] args) {
        for (int num=1;num<=9;num++){
            if (num% 3!=0){
                System.out.println(num+"*9="+num*9);
            }
        }
        for (int num=1;num<=9;num++){
            if (num% 3==0){
                continue;
            }
            System.out.println(num+"*9="+num*9);
        }
        /*for (int num=1;num<=10;num++){
            if (num==4){
                break;
            }
            System.out.println(num+"*9="+num*9);
        }

         */

        /*
        int sum=0;
        for (int i=1;i<=100;i++){
            sum= sum +i;
        }
        System.out.println("sum="+sum);

         */
        /*
        带数
                       sum=0
         i=1    true   sum=1
         i=2    true   sum=1+2
         i=3    true   sum=1+2+3
         i=4    true   sum=1+2+3+4
         ...
         i=99   true   sum=1+2+3+4+....+99
         i=100  true   sum=1+2+3+4+....+99+100
         i=101  false  for循环结束，输出sum的值

         */



    }

}
